// server/routes/game.routes.js
const express = require('express');
const router = express.Router();
const gameController = require('../controllers/game.controller');

// 创建新游戏
router.post('/games', gameController.createGame);

// 获取游戏状态
router.get('/games/:id', gameController.getGame);

// 玩家落子
router.post('/games/:id/moves', gameController.makeMove);

module.exports = router;